﻿interface IReportNotificationFactory {
    setValues: (reportNotificationObj: IReportNotification) => void;
    getValues: () => IReportNotification;
}

angular.module('shell').factory('reportNotificationFactory', function () {
    var reportNotification: IReportNotification = { Status: "", Finished: "", FilePath: "", Created: "", Error: "", ReportType: "" };
    var reportNotificationFactory: IReportNotificationFactory = {
        setValues: function (reportNotificationObj) {
            reportNotification = reportNotificationObj;
        },
        getValues: function () {
            return reportNotification;
        }
    };

    return reportNotificationFactory;
});